app.controller('BusVehicleDetailCtrl', function ($scope, $stateParams, ajax) {

    $scope.vehicleId = $stateParams.vehicleId;

    //查询
    $scope.reload = function () {
        ajax.call(new Req.GET({
            resource: 'vehicle/bs/' + $scope.vehicleId + '/id'
        })).then(function (result) {
            if (result.code && result.code == 200) {
                $scope.vehicle = result.result.vehicle;
                $scope.vehicleInsurance = result.result.vehicleInsurance;
                $scope.model = result.result.model;
            }
        }, function () { });
    };

    $scope.reload();
});
